﻿@model IEnumerable<Project.Models.WarehouseItems>

@{
    ViewBag.Title = "Cikkek";
}

<h2>Raktár cikkek</h2>

<p>
    @Html.ActionLink("Bevételezés", "Takein")
</p>
<table class="table">
    <tr>
        <th>
            @Html.DisplayNameFor(model => model.ItemStock.ItemName)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Quantity)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Unit)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.ItemNumber)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Note)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.UserIn)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.DateIn)
        </th>

        <th>
            
        </th>
        <th>
            
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Spaces.hely)
        </th>
        <th></th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.ItemStock.ItemName)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Quantity)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Unit)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.ItemNumber)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Note)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.UserIn)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.DateIn)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.PickingStock.PickingStockName)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.ReserveStock.ReserveStockName)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Spaces.hely)
        </td>
        <td>
            @Html.ActionLink("Szerkesztés", "Edit", new { id=item.WarehouseItem_Id }) <br />
            @Html.ActionLink("Részletek", "Details", new { id=item.WarehouseItem_Id }) <br />
            @Html.ActionLink("Törlés", "Delete", new { id=item.WarehouseItem_Id })
        </td>
    </tr>
}

</table>
